Optimal. Leaf size=509 \[ -\frac {2 \sqrt {2} a d \sqrt {g} \sqrt {\sin (e+f x)} \Pi \left (-\frac {\sqrt {b-a}}{\sqrt {a+b}};\left .\sin ^{-1}\left (\frac {\sqrt {g \cos (e+f x)}}{\sqrt {g} \sqrt {\sin (e+f x)+1}}\right )\right |-1\right )}{b f \sqrt {b-a} \sqrt {a+b} \sqrt {d \sin (e+f x)}}+\frac {2 \sqrt {2} a d \sqrt {g} \sqrt {\sin (e+f x)} \Pi \left (\frac {\sqrt {b-a}}{\sqrt {a+b}};\left .\sin ^{-1}\left (\frac {\sqrt {g \cos (e+f x)}}{\sqrt {g} \sqrt {\sin (e+f x)+1}}\right )\right |-1\right )}{b f \sqrt {b-a} \sqrt {a+b} \sqrt {d \sin (e+f x)}}+\frac {\sqrt {d} \sqrt {g} \tan ^{-1}\left (1-\frac {\sqrt {2} \sqrt {d} \sqrt {g \cos (e+f x)}}{\sqrt {g} \sqrt {d \sin (e+f x)}}\right )}{\sqrt {2} b f}-\frac {\sqrt {d} \sqrt {g} \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {d} \sqrt {g \cos (e+f x)}}{\sqrt {g} \sqrt {d \sin (e+f x)}}+1\right )}{\sqrt {2} b f}-\frac {\sqrt {d} \sqrt {g} \log \left (-\frac {\sqrt {2} \sqrt {d} \sqrt {g \cos (e+f x)}}{\sqrt {d \sin (e+f x)}}+\sqrt {g} \cot (e+f x)+\sqrt {g}\right )}{2 \sqrt {2} b f}+\frac {\sqrt {d} \sqrt {g} \log \left (\frac {\sqrt {2} \sqrt {d} \sqrt {g \cos (e+f x)}}{\sqrt {d \sin (e+f x)}}+\sqrt {g} \cot (e+f x)+\sqrt {g}\right )}{2 \sqrt {2} b f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.83, antiderivative size = 509, normalized size of antiderivative = 1.00, number of steps used = 16, number of rules used = 12, integrand size = 37, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.324, Rules used = {2909, 2575, 297, 1162, 617, 204, 1165, 628, 2906, 2905, 490, 1218} \[ -\frac {2 \sqrt {2} a d \sqrt {g} \sqrt {\sin (e+f x)} \Pi \left (-\frac {\sqrt {b-a}}{\sqrt {a+b}};\left .\sin ^{-1}\left (\frac {\sqrt {g \cos (e+f x)}}{\sqrt {g} \sqrt {\sin (e+f x)+1}}\right )\right |-1\right )}{b f \sqrt {b-a} \sqrt {a+b} \sqrt {d \sin (e+f x)}}+\frac {2 \sqrt {2} a d \sqrt {g} \sqrt {\sin (e+f x)} \Pi \left (\frac {\sqrt {b-a}}{\sqrt {a+b}};\left .\sin ^{-1}\left (\frac {\sqrt {g \cos (e+f x)}}{\sqrt {g} \sqrt {\sin (e+f x)+1}}\right )\right |-1\right )}{b f \sqrt {b-a} \sqrt {a+b} \sqrt {d \sin (e+f x)}}+\frac {\sqrt {d} \sqrt {g} \tan ^{-1}\left (1-\frac {\sqrt {2} \sqrt {d} \sqrt {g \cos (e+f x)}}{\sqrt {g} \sqrt {d \sin (e+f x)}}\right )}{\sqrt {2} b f}-\frac {\sqrt {d} \sqrt {g} \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {d} \sqrt {g \cos (e+f x)}}{\sqrt {g} \sqrt {d \sin (e+f x)}}+1\right )}{\sqrt {2} b f}-\frac {\sqrt {d} \sqrt {g} \log \left (-\frac {\sqrt {2} \sqrt {d} \sqrt {g \cos (e+f x)}}{\sqrt {d \sin (e+f x)}}+\sqrt {g} \cot (e+f x)+\sqrt {g}\right )}{2 \sqrt {2} b f}+\frac {\sqrt {d} \sqrt {g} \log \left (\frac {\sqrt {2} \sqrt {d} \sqrt {g \cos (e+f x)}}{\sqrt {d \sin (e+f x)}}+\sqrt {g} \cot (e+f x)+\sqrt {g}\right )}{2 \sqrt {2} b f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 204
Rule 297
Rule 490
Rule 617
Rule 628
Rule 1162
Rule 1165
Rule 1218
Rule 2575
Rule 2905
Rule 2906
Rule 2909
Rubi steps
\begin {align*} \int \frac {\sqrt {g \cos (e+f x)} \sqrt {d \sin (e+f x)}}{a+b \sin (e+f x)} \, dx &=\frac {d \int \frac {\sqrt {g \cos (e+f x)}}{\sqrt {d \sin (e+f x)}} \, dx}{b}-\frac {(a d) \int \frac {\sqrt {g \cos (e+f x)}}{\sqrt {d \sin (e+f x)} (a+b \sin (e+f x))} \, dx}{b}\\ &=-\frac {\left (2 d^2 g\right ) \operatorname {Subst}\left (\int \frac {x^2}{g^2+d^2 x^4} \, dx,x,\frac {\sqrt {g \cos (e+f x)}}{\sqrt {d \sin (e+f x)}}\right )}{b f}-\frac {\left (a d \sqrt {\sin (e+f x)}\right ) \int \frac {\sqrt {g \cos (e+f x)}}{\sqrt {\sin (e+f x)} (a+b \sin (e+f x))} \, dx}{b \sqrt {d \sin (e+f x)}}\\ &=\frac {(d g) \operatorname {Subst}\left (\int \frac {g-d x^2}{g^2+d^2 x^4} \, dx,x,\frac {\sqrt {g \cos (e+f x)}}{\sqrt {d \sin (e+f x)}}\right )}{b f}-\frac {(d g) \operatorname {Subst}\left (\int \frac {g+d x^2}{g^2+d^2 x^4} \, dx,x,\frac {\sqrt {g \cos (e+f x)}}{\sqrt {d \sin (e+f x)}}\right )}{b f}+\frac {\left (4 \sqrt {2} a d g \sqrt {\sin (e+f x)}\right ) \operatorname {Subst}\left (\int \frac {x^2}{\left ((a+b) g^2+(a-b) x^4\right ) \sqrt {1-\frac {x^4}{g^2}}} \, dx,x,\frac {\sqrt {g \cos (e+f x)}}{\sqrt {1+\sin (e+f x)}}\right )}{b f \sqrt {d \sin (e+f x)}}\\ &=-\frac {\left (\sqrt {d} \sqrt {g}\right ) \operatorname {Subst}\left (\int \frac {\frac {\sqrt {2} \sqrt {g}}{\sqrt {d}}+2 x}{-\frac {g}{d}-\frac {\sqrt {2} \sqrt {g} x}{\sqrt {d}}-x^2} \, dx,x,\frac {\sqrt {g \cos (e+f x)}}{\sqrt {d \sin (e+f x)}}\right )}{2 \sqrt {2} b f}-\frac {\left (\sqrt {d} \sqrt {g}\right ) \operatorname {Subst}\left (\int \frac {\frac {\sqrt {2} \sqrt {g}}{\sqrt {d}}-2 x}{-\frac {g}{d}+\frac {\sqrt {2} \sqrt {g} x}{\sqrt {d}}-x^2} \, dx,x,\frac {\sqrt {g \cos (e+f x)}}{\sqrt {d \sin (e+f x)}}\right )}{2 \sqrt {2} b f}-\frac {g \operatorname {Subst}\left (\int \frac {1}{\frac {g}{d}-\frac {\sqrt {2} \sqrt {g} x}{\sqrt {d}}+x^2} \, dx,x,\frac {\sqrt {g \cos (e+f x)}}{\sqrt {d \sin (e+f x)}}\right )}{2 b f}-\frac {g \operatorname {Subst}\left (\int \frac {1}{\frac {g}{d}+\frac {\sqrt {2} \sqrt {g} x}{\sqrt {d}}+x^2} \, dx,x,\frac {\sqrt {g \cos (e+f x)}}{\sqrt {d \sin (e+f x)}}\right )}{2 b f}+\frac {\left (2 \sqrt {2} a d g \sqrt {\sin (e+f x)}\right ) \operatorname {Subst}\left (\int \frac {1}{\left (\sqrt {a+b} g-\sqrt {-a+b} x^2\right ) \sqrt {1-\frac {x^4}{g^2}}} \, dx,x,\frac {\sqrt {g \cos (e+f x)}}{\sqrt {1+\sin (e+f x)}}\right )}{b \sqrt {-a+b} f \sqrt {d \sin (e+f x)}}-\frac {\left (2 \sqrt {2} a d g \sqrt {\sin (e+f x)}\right ) \operatorname {Subst}\left (\int \frac {1}{\left (\sqrt {a+b} g+\sqrt {-a+b} x^2\right ) \sqrt {1-\frac {x^4}{g^2}}} \, dx,x,\frac {\sqrt {g \cos (e+f x)}}{\sqrt {1+\sin (e+f x)}}\right )}{b \sqrt {-a+b} f \sqrt {d \sin (e+f x)}}\\ &=-\frac {\sqrt {d} \sqrt {g} \log \left (\sqrt {g}+\sqrt {g} \cot (e+f x)-\frac {\sqrt {2} \sqrt {d} \sqrt {g \cos (e+f x)}}{\sqrt {d \sin (e+f x)}}\right )}{2 \sqrt {2} b f}+\frac {\sqrt {d} \sqrt {g} \log \left (\sqrt {g}+\sqrt {g} \cot (e+f x)+\frac {\sqrt {2} \sqrt {d} \sqrt {g \cos (e+f x)}}{\sqrt {d \sin (e+f x)}}\right )}{2 \sqrt {2} b f}-\frac {2 \sqrt {2} a d \sqrt {g} \Pi \left (-\frac {\sqrt {-a+b}}{\sqrt {a+b}};\left .\sin ^{-1}\left (\frac {\sqrt {g \cos (e+f x)}}{\sqrt {g} \sqrt {1+\sin (e+f x)}}\right )\right |-1\right ) \sqrt {\sin (e+f x)}}{b \sqrt {-a+b} \sqrt {a+b} f \sqrt {d \sin (e+f x)}}+\frac {2 \sqrt {2} a d \sqrt {g} \Pi \left (\frac {\sqrt {-a+b}}{\sqrt {a+b}};\left .\sin ^{-1}\left (\frac {\sqrt {g \cos (e+f x)}}{\sqrt {g} \sqrt {1+\sin (e+f x)}}\right )\right |-1\right ) \sqrt {\sin (e+f x)}}{b \sqrt {-a+b} \sqrt {a+b} f \sqrt {d \sin (e+f x)}}-\frac {\left (\sqrt {d} \sqrt {g}\right ) \operatorname {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1-\frac {\sqrt {2} \sqrt {d} \sqrt {g \cos (e+f x)}}{\sqrt {g} \sqrt {d \sin (e+f x)}}\right )}{\sqrt {2} b f}+\frac {\left (\sqrt {d} \sqrt {g}\right ) \operatorname {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1+\frac {\sqrt {2} \sqrt {d} \sqrt {g \cos (e+f x)}}{\sqrt {g} \sqrt {d \sin (e+f x)}}\right )}{\sqrt {2} b f}\\ &=\frac {\sqrt {d} \sqrt {g} \tan ^{-1}\left (1-\frac {\sqrt {2} \sqrt {d} \sqrt {g \cos (e+f x)}}{\sqrt {g} \sqrt {d \sin (e+f x)}}\right )}{\sqrt {2} b f}-\frac {\sqrt {d} \sqrt {g} \tan ^{-1}\left (1+\frac {\sqrt {2} \sqrt {d} \sqrt {g \cos (e+f x)}}{\sqrt {g} \sqrt {d \sin (e+f x)}}\right )}{\sqrt {2} b f}-\frac {\sqrt {d} \sqrt {g} \log \left (\sqrt {g}+\sqrt {g} \cot (e+f x)-\frac {\sqrt {2} \sqrt {d} \sqrt {g \cos (e+f x)}}{\sqrt {d \sin (e+f x)}}\right )}{2 \sqrt {2} b f}+\frac {\sqrt {d} \sqrt {g} \log \left (\sqrt {g}+\sqrt {g} \cot (e+f x)+\frac {\sqrt {2} \sqrt {d} \sqrt {g \cos (e+f x)}}{\sqrt {d \sin (e+f x)}}\right )}{2 \sqrt {2} b f}-\frac {2 \sqrt {2} a d \sqrt {g} \Pi \left (-\frac {\sqrt {-a+b}}{\sqrt {a+b}};\left .\sin ^{-1}\left (\frac {\sqrt {g \cos (e+f x)}}{\sqrt {g} \sqrt {1+\sin (e+f x)}}\right )\right |-1\right ) \sqrt {\sin (e+f x)}}{b \sqrt {-a+b} \sqrt {a+b} f \sqrt {d \sin (e+f x)}}+\frac {2 \sqrt {2} a d \sqrt {g} \Pi \left (\frac {\sqrt {-a+b}}{\sqrt {a+b}};\left .\sin ^{-1}\left (\frac {\sqrt {g \cos (e+f x)}}{\sqrt {g} \sqrt {1+\sin (e+f x)}}\right )\right |-1\right ) \sqrt {\sin (e+f x)}}{b \sqrt {-a+b} \sqrt {a+b} f \sqrt {d \sin (e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 11.03, size = 178, normalized size = 0.35 \[ \frac {2 (d \sin (e+f x))^{3/2} (g \cos (e+f x))^{3/2} \left (a+b \sqrt {\sin ^2(e+f x)}\right ) \left (b F_1\left (\frac {3}{4};-\frac {1}{4},1;\frac {7}{4};\cos ^2(e+f x),\frac {b^2 \cos ^2(e+f x)}{b^2-a^2}\right )-a F_1\left (\frac {3}{4};\frac {1}{4},1;\frac {7}{4};\cos ^2(e+f x),\frac {b^2 \cos ^2(e+f x)}{b^2-a^2}\right )\right )}{3 d f g \left (a^2-b^2\right ) \sin ^2(e+f x)^{3/4} (a+b \sin (e+f x))} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sqrt {g \cos \left (f x + e\right )} \sqrt {d \sin \left (f x + e\right )}}{b \sin \left (f x + e\right ) + a}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.86, size = 744, normalized size = 1.46 \[ \frac {\left (a -b \right ) \left (i \EllipticPi \left (\sqrt {-\frac {-1+\cos \left (f x +e \right )-\sin \left (f x +e \right )}{\sin \left (f x +e \right )}}, \frac {1}{2}-\frac {i}{2}, \frac {\sqrt {2}}{2}\right ) \sqrt {-a^{2}+b^{2}}-i \EllipticPi \left (\sqrt {-\frac {-1+\cos \left (f x +e \right )-\sin \left (f x +e \right )}{\sin \left (f x +e \right )}}, \frac {1}{2}+\frac {i}{2}, \frac {\sqrt {2}}{2}\right ) \sqrt {-a^{2}+b^{2}}+\EllipticPi \left (\sqrt {-\frac {-1+\cos \left (f x +e \right )-\sin \left (f x +e \right )}{\sin \left (f x +e \right )}}, \frac {1}{2}-\frac {i}{2}, \frac {\sqrt {2}}{2}\right ) \sqrt {-a^{2}+b^{2}}+\EllipticPi \left (\sqrt {-\frac {-1+\cos \left (f x +e \right )-\sin \left (f x +e \right )}{\sin \left (f x +e \right )}}, \frac {1}{2}+\frac {i}{2}, \frac {\sqrt {2}}{2}\right ) \sqrt {-a^{2}+b^{2}}-\EllipticPi \left (\sqrt {-\frac {-1+\cos \left (f x +e \right )-\sin \left (f x +e \right )}{\sin \left (f x +e \right )}}, \frac {a}{a -b +\sqrt {-a^{2}+b^{2}}}, \frac {\sqrt {2}}{2}\right ) \sqrt {-a^{2}+b^{2}}+a \EllipticPi \left (\sqrt {-\frac {-1+\cos \left (f x +e \right )-\sin \left (f x +e \right )}{\sin \left (f x +e \right )}}, \frac {a}{a -b +\sqrt {-a^{2}+b^{2}}}, \frac {\sqrt {2}}{2}\right )+b \EllipticPi \left (\sqrt {-\frac {-1+\cos \left (f x +e \right )-\sin \left (f x +e \right )}{\sin \left (f x +e \right )}}, \frac {a}{a -b +\sqrt {-a^{2}+b^{2}}}, \frac {\sqrt {2}}{2}\right )-\EllipticPi \left (\sqrt {-\frac {-1+\cos \left (f x +e \right )-\sin \left (f x +e \right )}{\sin \left (f x +e \right )}}, -\frac {a}{b +\sqrt {-a^{2}+b^{2}}-a}, \frac {\sqrt {2}}{2}\right ) \sqrt {-a^{2}+b^{2}}-a \EllipticPi \left (\sqrt {-\frac {-1+\cos \left (f x +e \right )-\sin \left (f x +e \right )}{\sin \left (f x +e \right )}}, -\frac {a}{b +\sqrt {-a^{2}+b^{2}}-a}, \frac {\sqrt {2}}{2}\right )-b \EllipticPi \left (\sqrt {-\frac {-1+\cos \left (f x +e \right )-\sin \left (f x +e \right )}{\sin \left (f x +e \right )}}, -\frac {a}{b +\sqrt {-a^{2}+b^{2}}-a}, \frac {\sqrt {2}}{2}\right )\right ) \sqrt {-\frac {-1+\cos \left (f x +e \right )-\sin \left (f x +e \right )}{\sin \left (f x +e \right )}}\, \sqrt {\frac {-1+\cos \left (f x +e \right )+\sin \left (f x +e \right )}{\sin \left (f x +e \right )}}\, \sqrt {\frac {-1+\cos \left (f x +e \right )}{\sin \left (f x +e \right )}}\, \sqrt {d \sin \left (f x +e \right )}\, \sqrt {g \cos \left (f x +e \right )}\, \sin \left (f x +e \right ) \sqrt {2}\, a}{f \cos \left (f x +e \right ) \left (-1+\cos \left (f x +e \right )\right ) b \sqrt {-a^{2}+b^{2}}\, \left (a -b +\sqrt {-a^{2}+b^{2}}\right ) \left (b +\sqrt {-a^{2}+b^{2}}-a \right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sqrt {g \cos \left (f x + e\right )} \sqrt {d \sin \left (f x + e\right )}}{b \sin \left (f x + e\right ) + a}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {\sqrt {g\,\cos \left (e+f\,x\right )}\,\sqrt {d\,\sin \left (e+f\,x\right )}}{a+b\,\sin \left (e+f\,x\right )} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sqrt {d \sin {\left (e + f x \right )}} \sqrt {g \cos {\left (e + f x \right )}}}{a + b \sin {\left (e + f x \right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________